package com.iotproject.blogservice.mapper;

import com.iotproject.blogservice.entity.MyBlog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 博客 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2023-03-29
 */
public interface MBlogMapper extends BaseMapper<MyBlog> {

    List<MyBlog> userArticleList(@Param("userId") String userId, @Param("page") Integer page, @Param("size") Integer size);
    void increaseViewCount(@Param("articleId") String articleId);
}
